Deactivate User

Deactivates the specified User

PUT{accelqLoginUrl}/awb/api/2.0/{tenantCode}/administration/users/deactivate/{userPid}

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
userPidintegerYesUnique identifier of the user
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Responses

200 - User deactivation successful

json
true

400 - Bad Request Error

json
{
  "error": "Active To date must be after Active From date"
}

403 - Forbidden - User does not have permission to activate users

json
{
  "error": "User does not have authorization to access this feature"
}

404 - User not found

json
{
  "error": "User with pid : '26' doesnot exist."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X PUT "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/administration/users/deactivate/${{userPid}}" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"